<!doctype html>
<html lang="en" ng-app>
<head>
    <meta charset="UTF-8">
    <title>Angular Controller</title>
</head>
<body>
<div>
    <div ng-controller="Controller1">
        <p>{{greeting.text}},Angular</p>
        <button ng-click="test1()">test1</button>
    </div>
    <div ng-controller="Controller2">
        <p>{{greeting.text}},Angular</p>
        <button ng-click="test2()">test2</button>
        <button ng-click="commonFn()">通用</button>
    </div>
</div>
<script src="/src/js/controller.js"></script>
<script src="/src/js/lib/angular.js"></script>

</body>
</html>